﻿/*
 * Author:  崔丽阳
 * CreateTime: 2018/10/11 10:14:40
 * Module:
 * 主要功能：状态枚举
 *
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MGAudioEngine
{
    /// <summary>
    /// 连接状态
    /// </summary>
    public enum ConnectState
    {
        Init,
        Authenticating,
        Authenticated,
        UnAuthenticatiion,
        Connecting,
        Connected,
        LostConnect,
        Quiting,
        Quited,
        ConnectDestroyed
    }

    /// <summary>
    /// 连接错误代码
    /// </summary>
    public enum ConnectError
    {
        Unknow,  //未知错误
        Timeout, //连接超时
        LostConnect, //断开连接
        ConnectDestroyed, //连接已被销毁
        JoinRoomFail,     //加入房间失败
        CreateRoomFail,   //创建房间失败
        NotFoundRoom,     //未找到房间
        UnAuthen,         //未认证
        RoomIdError,      //返回roomId不符合规范
    }

}


